package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class SysHpLjEventDataRowMapper implements RowMapper<SysHpLjEventData>{



	@Override
	public SysHpLjEventData mapRow(ResultSet rs, int rowNum) throws SQLException {
		SysHpLjEventData  lj= new SysHpLjEventData();
		lj.setId(rs.getInt("id"));
		lj.setImageurl(rs.getString("imageurl"));
		lj.setDeviceId(rs.getString("deviceId"));
		lj.setDeviceName(rs.getString("deviceName"));
		lj.setArea(rs.getString("area"));
		lj.setEventType(rs.getString("eventType"));
		lj.setEventTime(rs.getString("eventTime"));
		lj.setCreate_time(rs.getTimestamp("create_time"));
		return lj;
	}

}
